package com.yc.shadowdemo.net

import com.yc.commontlib.YcJetpack
import com.yc.shadowdemo.App
import com.yc.shadowdemo.data.json.VersionJson
import com.yc.shadowdemo.demo.UrlHelper
import retrofit2.http.*

/**
 *
 */
interface ApiService {
    /**
     * 版本更新
     */
    @GET("clientPackage/getClientVersion")
    suspend fun getVersion(
        @Query("clientType") clientType: String = "1",
        @Query("channel") channel: String = App.mInstant.packageName,
        @Header(YcJetpack.OTHER_BASE_URL) otherUrl: String = UrlHelper.URL_VERSION,
    ): HttpResponse<VersionJson>
}